/*
 * @Description: 权限校验模板
 * @Version: 1.0
 * @Author: 琴时
 * @Date: 2021-11-25 12:52:01
 * @LastEditors: 琴时
 * @LastEditTime: 2021-11-25 13:04:07
 * @FilePath: \pt-utils\react-demo\src\wrappers\auth.tsx
 */
import { Redirect } from 'umi';
export default (props: any) => {
  const { isLogin } = { isLogin: true };
  if (isLogin) {
    return <div>{props.children}</div>;
  } else {
    return <Redirect to="/" />;
  }
};
